﻿#region Header
// ------------------------ Licence / Copyright ------------------------
// 
// ScrumTable for Scrum Meeting Support
// Copyright © HSR - Hochschule für Technik Rapperswil
// All Rights Reserved
// 
// Author:
//  Michael Gfeller Silvan Gehrig Patrick Boos
// 
// ---------------------------------------------------------------------
#endregion

#region Usings

using System.ComponentModel;

#endregion

namespace ScrumTable.BL.DM.DataManagement
{
    /// <summary>
    /// Represents the an event arguments class which contains additional
    /// information about an event if something has changed inside a
    /// domain object.
    /// </summary>
    public class DomainChangingEventArgs : PropertyChangingEventArgs
    {
        #region Declarations
        //--------------------------------------------------------------------
        // Declarations
        //--------------------------------------------------------------------
        
        #endregion

        #region Properties
        //--------------------------------------------------------------------
        // Properties
        //--------------------------------------------------------------------

        /// <summary>
        /// Gets the changed element instance. If this contains a null reference,
        /// the event is assigned to all elements in the collection.
        /// </summary>
        public DomainBase ChangedElement { get; private set; }

        #endregion

        #region Constructors / Destructor
        //--------------------------------------------------------------------
        // Constructors / Destructor
        //--------------------------------------------------------------------

        /// <summary>
        /// Creates a new DomainChangingEventArgs instance. This constructor
        /// is protected internal because its needed by derived or package classes only.
        /// </summary>
        internal protected DomainChangingEventArgs(DomainBase element, string property)
            : base(property)
        {
            ChangedElement = element;
        }

        /// <summary>
        /// Creates a new DomainChangingEventArgs instance. This constructor
        /// is protected internal because its needed by derived or package classes only.
        /// </summary>
        protected DomainChangingEventArgs(string property)
            : base(property)
        {
        }

        #endregion

        #region Methods
        //--------------------------------------------------------------------
        // Methods
        //--------------------------------------------------------------------

        #endregion

        #region Events
        //--------------------------------------------------------------------
        // Events
        //--------------------------------------------------------------------

        #endregion
    }
}